package com.cmpan.networkdisk.dao;

import com.cmpan.networkdisk.model.Disk;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiskMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Disk record);

    int insertSelective(Disk record);

    Disk selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Disk record);

    int updateByPrimaryKey(Disk record);

    List<Disk> selectAll();

    List<Disk> selectPage(@Param("start") int start,@Param("end") int end);

    String selectFilePathByPrimaryKey(Long id);

    List selectAllFileName();

    List<Disk> selectFileName(@Param("fileName") String[] fileName);

    List<Disk> selectByTypeID(String typeid);

    int selectpage();

    List<Disk> selectDiskByIDs(String[] id);

    int batchDelete(List<Disk> disks);
}